package base.ifunction;

import java.util.function.Consumer;

public class TestConsumer {
    public static void main(String[] args) {
        testApply();
    }

    private static void testApply() {
        Consumer<Integer> consumer = a -> System.out.println(a * 2);
        consumer.accept(2);
     }
}
